package com.csht.service;

import java.util.Map;

import com.csht.model.CshtMessageReport;
import com.csht.page.PagerModel;
import com.csht.vo.my.CshtMessageReportVo;

/**
 * 留言举报记录service接口
 * @author chenhuiyan
 *
 */
public interface CshtMessageReportService {
	
	/**
	 * 根据用户id查询留言举报记录总数
	 * @param userId
	 * @return
	 * @throws Exception
	 */
	public Integer getMessageReportNumberByUserId(Integer userId) throws Exception;
	
	/**
	 * 根据用户id查询留言举报记录
	 * @param res
	 * @return
	 * @throws Exception
	 */
	public PagerModel<CshtMessageReportVo> getMessageReportByUserId(Map<String, Integer> res) throws Exception;
	
	/**
	 * 根据留言举报id查询留言举报记录
	 * @param messageReportId
	 * @return
	 * @throws Exception
	 */
	public CshtMessageReportVo getMessageReportByMessageReportId(Integer messageReportId) throws Exception;
	
	/**
	 * 插入一条记录
	 * @param cshtMessageReport
	 * @throws Exception
	 */
	public void insertMessageReport(CshtMessageReport cshtMessageReport) throws Exception;

}
